<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="/struts-tags" 	prefix="s"%>
<%@ include file="/jsp/common/common_head.jsp"%>
<!DOCTYPE HTML>
<html>
<head>
<title>示界港管理平台</title>
<%@ include file="/jsp/common/common_script.jsp"%>
<style type="text/css">
</style>
<script type="text/javascript">
 var g_userId = '<%=session.getAttribute("userId")%>';
</script>
</head>
<body>
<table class="queryTable" >
	<tr>
		<td class="queryTitle" width="68px">分类</td>
		<td class="queryContent">
			<select id="queryPpType" class="easyui-combobox" panelHeight="auto" editable="false" style="width: 120px" >
				<option value="0" selected>[不限]</option>
				<option value="1">印刷套餐</option>
				<option value="2">配件套餐</option>
				<option value="3">虚拟商品套餐</option>
				<option value="10">LOGO商品套餐</option>
				<option value="11">营销商品套餐</option>
			</select>
		</td>
		<td class="queryTitle" width="68px">状态</td>
		<td class="queryContent">
			<select id="queryPpState" class="easyui-combobox" panelHeight="auto" editable="false" style="width: 120px" >
				<option value="0" selected>[不限]</option>
				<option value="10">有效</option>
				<option value="20">无效</option>
			</select>
		</td>
		<td class="queryTitle" width="80px">套餐名称</td>
		<td class="queryContent">
			<input class="inputText" type="text" id="queryPpName" />
		</td>
		<td class="queryBtnTd">
			<a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon-search"  onclick="doQuery()">查询</a>
		</td>
	</tr>
</table>

<table id="printGrid"></table>
<div id="editDlg" class="easyui-window" title="" closed="true" style="width:780px; height:500px;text-align:center; background: #fff;">
	<div border="false" style="padding-left:10px;padding-right:10px;">
		<form id="editForm"  method="POST">
			<s:hidden name="editPpId" id="editPpId"/>
			<table border="0" class="queryTable" width="95%" height="auto" style="margin-bottom:0px;" id="editTable">
				<tr>	
					<td class="queryTitle" width="100px">印刷套餐名称</td>
					<td class="queryContent" colspan="3">
						<input class="inputText" type="text" style="width:400px" id="editPpName" />
					</td>
				</tr>
				<tr>	
					<td class="queryTitle" width="100px">内部名称</td>
					<td class="queryContent" colspan="3">
						<input class="inputText" type="text" style="width:400px" id="editInsideName" />
					</td>
				</tr>
				<tr>	
					<td class="queryTitle" width="100px">套餐分类</td>
					<td class="queryContent">
						<select id="editPpType" class="easyui-combobox" panelHeight="auto" editable="false" style="width: 120px" >
							<option value="1" selected>印刷套餐</option>
							<option value="2">配件套餐</option>
							<option value="3">虚拟商品套餐</option>
							<option value="10">LOGO商品套餐</option>
							<option value="11">营销商品套餐</option>
						</select>
					</td>
					<td class="queryTitle" width="100px">计价方式</td>
					<td class="queryContent">
						<select id="editPpPricing" class="easyui-combobox" panelHeight="auto" editable="false" style="width: 120px" >
							<option value="10" selected>区间计价</option>
							<option value="20">单个计价</option>
						</select>
					</td>
				</tr>
				<tr>	
					<td class="queryTitle" width="100px">套餐简介</td>
					<td class="queryContent" colspan="3">
						<textarea id="editPpDesc" name="editPpDesc" rows="5" cols="55" class="inputText easyui-validatebox" style="width:100%;resize:none;" data-options="required:true,validType:['maxLength[200]']"></textarea>
					</td>
				</tr>
				<tr>	
					<td class="queryTitle" width="100px">尺寸</td>
					<td class="queryContent" colspan="3">
						<select id="editPpSize" class="easyui-combobox" panelHeight="auto" editable="false" style="width: 400px" >
						</select>
					</td>
				</tr>
				<tr>	
					<td class="queryTitle" width="100px">样式</td>
					<td class="queryContent" colspan="3">
						<input class="inputText" type="text" style="width:400px" id="editPpStyle" />
					</td>
				</tr>
				<tr>	
					<td class="queryTitle" width="100px">材质</td>
					<td class="queryContent" colspan="3">
						<input class="inputText" type="text" style="width:400px" id="editPpMat" />
					</td>
				</tr>
				<tr>	
					<td class="queryTitle" width="100px">工艺</td>
					<td class="queryContent" colspan="3">
						<input class="inputText" type="text" style="width:400px" id="editPpTech" />
					</td>
				</tr>
				<tr>
					<td class="queryTitle" width="100px" height="100px">套餐配图</td>
					<td class="queryContent" colspan="2">
						<div style="display:table;height:180px;width:400px" id="editPpThumb">
						</div>
					</td>
					<td class="queryContent">
						<a class="easyui-linkbutton" id="selImgFile" iconCls="icon-add" href="javascript:void(0)" >选择/添加图像</a>
					</td>
				</tr>
			</table>
		</form>
	</div>
	<div style="clear:both;padding-top:10px;margin-bottom:10px;text-align:center;" id="editBtn">
		<a class="easyui-linkbutton" iconCls="icon-ok" href="javascript:void(0)" onclick="doEdit()">确定</a>
		<a class="easyui-linkbutton" iconCls="icon-cancel" href="javascript:void(0)" onclick="cancelEdit()">取消</a>
    </div>
</div>

<div id="stateDlg" class="easyui-window" title="" closed="true" style="width:600px; height:280px;text-align:center; background: #fff;">
	<div border="false" style="padding-left:20px;">
		<form id="stateForm"  method="POST">
			<s:hidden name="updPpId" id="updPpId"/>
			<table border="0" class="queryTable" width="95%" height="auto" style="margin-bottom:0px;" id="stateTable">
				<tr>	
					<td class="queryTitle" width="100px">印刷参数编号</td>
					<td class="queryContent" >
						<span id="updPpNo" style="color:red;"></span>
					</td>
				</tr>
				<tr>
					<td class="queryTitle" width="100px">反馈状态</td>
					<td class="queryContent">
						<select id="updPpState" class="easyui-combobox" panelHeight="auto" editable="false" style="width:120px" >
							<option value="0" selected>[未知]</option>
							<option value="10">有效</option>
							<option value="20">无效</option>
						</select>
					</td>
				</tr>
			</table>
		</form>
	</div>
	<div style="clear:both;padding-top:10px;margin-bottom:10px;text-align:center;" id="stateBtn">
		<a class="easyui-linkbutton" iconCls="icon-ok" href="javascript:void(0)" onclick="doUpdState()">更新</a>
		<a class="easyui-linkbutton" iconCls="icon-cancel" href="javascript:void(0)" onclick="cancelUpdState()">取消</a>
    </div>
</div>

<script type="text/javascript" src="${ctx}/js/tg/uploadcom.js"></script>
<script type="text/javascript" src="${ctx}/js/tg/ajaxupload.js"></script>
<script type="text/javascript" src="${ctx}/js/trade/printParaInfo.js"></script>
<script type="text/javascript" src="${ctx}/js/encrypt/encrypted-min.js"></script>
</body>
</html>
